.modal {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 300px;
  height: 200px;
  border: 1px solid #ccc;
}

.success {
  background: #7edc7d;
}
.warn {
  background: #f2bf47;
}
.error {
  background: rgb(226, 115, 115);
}
